<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>医疗信息管理系统</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1/css/bootstrap.min.css' %}">

    <style>
        .navbar{
          border_radius:0;
        }
    </style>

    {% block css %} {% endblock %}


</head>
<body>

<nav class="navbar navbar-default">
    <div class="container">

        <!--        request参数应用-->
<!--        {{ request.session.info.id }}-->
<!--        {{ request.session.info.name }}-->
<!--        -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">医疗管理系统</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="/hos/list/">医院管理</a></li>
                <li><a href="#">医生管理</a></li>
                <li><a href="/main_dep/list/">主科室管理</a></li>
                <li><a href="/sub_dep/list/">次科室管理</a></li>
                <li><a href="#">病例管理</a></li>
                <li><a href="/users/list/">用户管理</a></li>

            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">登录</a></li>

                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">{{ request.session.info.name }}<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">个人资料</a></li>
                        <li><a href="#">我的信息</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="/login/">退出登录</a> </li>
                        <li><a href="/logout/">注销</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>

<!--模板的继承-->
<div class="container">
    {% block content %}

    {% endblock %}
</div>

<script src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
<script src="{% static '/plugins/bootstrap-3.4.1/js/bootstrap.min.js' %}"></script>

{% block js %}

{% endblock %}

</body>
</html>

